home *** CD-ROM | disk | FTP | other *** search
- /*
- * Sample adventure game room generator:
- */
- dungroom: {A $size $shape $room $type1.
- $exits.
- $objects.}
- ;
-
- size: {large}
- | {small}
- | {tall}
- | {low ceilinged}
- ;
- shape: {rectangular}
- | {round}
- | {square}
- | {diamond shaped}
- | {octagonal}
- | {irregularly shaped}
- ;
- room: {room}
- | {entrance hall}
- | {cave}
- | {place}
- ;
-
- type1: {which smells like bats}
- | {which is very dingy and dirty}
- | {covered thickly in dust}
- | {faced with brick}
- | {richly panelled in mahoganey}
- | {which gives you an $feeling}
- ;
-
- exits: {There are doorways to the $south, $eastwest, and $north}
- | {There is a single doorway to the $direction}
- | {There are exits to the $eastwest and $south}
- | {There is a door to the $direction and a trap door in the floor}
- ;
-
- south: {south}
- | {south east}
- | {south west}
- ;
-
- eastwest: {east}
- | {west}
- ;
-
- north: {north}
- | {north east}
- | {north west}
- ;
-
- direction: {$south}
- | {$eastwest}
- | {$north}
- ;
-
- objects!u: {There is a $treasure here}
- | {There is $monster here}
- | {There is a $treasure here}
- | {$objects
- $objects}
- | {There is $furniture here}
- | {There is $monster here}
- | {$objects.
- $objects}
- | {There is $furniture here}
- ;
-
- treasure!u: {golden chalice}
- | {silver dagger}
- | {silver candlestick}
- | {large ruby}
- | {small emerald}
- | {blue-white diamond}
- | {medium emerald}
- | {pouch of copper coins}
- | {purse filled with silver spoons}
- | {gold nugget}
- | {golden ankh}
- | {gold ring}
- ;
-
- monster!u: {pair of orcs}
- | {a troll}
- | {a giant bat}
- | {a dozen evil slinking rats}
- | {a mosquitoe the size of a hummingbird}
- | {an old man in a battered hat}
- | {a quivering blob}
- | {a slowly moving slug, about 3 feet long}
- | {a moist, glowing mushroom}
- | {an ancient dwarf}
- | {a pair of hungry-looking tigers}
- | {a large extremely shaggy bear}
- ;
-
- furniture!u: {a broken chair}
- | {an empty wooden chest}
- | {a straw mattress}
- | {a pile of clothing}
- | {a rubber band}
- | {a rusted metal band}
- | {a gnawed bone}
- | {a shiny piece of wire}
- | {a pair of leather boots}
- | {a dusty harp}
- ;
-
- feeling!u: {itchy sensation}
- | {creepy feeling}
- | {peaceful feeling}
- | {irritable sensation}
- | {peculiar feeling}
- ;
-